package cn.wolfcode.crm.service.imp;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.mapper.ChartMapper;
import cn.wolfcode.crm.query.ClientChartQueryObject;
import cn.wolfcode.crm.service.IChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class ChartServiceImpl implements IChartService {
    @Autowired
    private ChartMapper chartMapper;


    @Override
    public List<Map<String, Object>> clientChart(ClientChartQueryObject qo) {

        return chartMapper.clientChart(qo);
    }

    @Override
    public Integer selectByNumber(Client num) {
        return chartMapper.selectByNumber(num);
    }

    @Override
    public Integer totalPrice(Client maney) {
        return chartMapper.totalPrice(maney);
    }

    @Override
    public Integer clientName(Client name) {
        return chartMapper.clientName(name);
    }


}
